<?php require_once 'header2.php';?> 
<div class="main">
	<div class="left_cn">
	<h2>首页中间块中文</h2>
	<form action="<?php echo current_url(); ?>" method="POST">
		<p>1. 标题：
		<input type="text" name="index_middletit[]" value="<?php if(isset($indexmiddle_cn[0]['index_middletit'])){echo $indexmiddle_cn[0]['index_middletit']; unset($indexmiddle_cn[0]['index_middletit']);}?>" />
		<br/>
		&nbsp;&nbsp;&nbsp;&nbsp;URL：
		<input type="text" name="index_middleurl[]" value="<?php if(isset($indexmiddle_cn[0]['index_middleurl'])){echo $indexmiddle_cn[0]['index_middleurl']; unset($indexmiddle_cn[0]['index_middleurl']);}?>" />
		<br/>
 		&nbsp;&nbsp;&nbsp;内容：
		<textarea name="index_middlec[]" cols=40 rows="8"><?php if(isset($indexmiddle_cn[0]['index_middlec'])){echo $indexmiddle_cn[0]['index_middlec']; unset($indexmiddle_cn[0]['index_middlec']);}?></textarea>
	</p>
	<p>2. 标题：
		<input type="text" name="index_middletit[]" value="<?php if(isset($indexmiddle_cn[1]['index_middletit'])){echo $indexmiddle_cn[1]['index_middletit']; unset($indexmiddle_cn[1]['index_middletit']);}?>" />
		<br/>
		&nbsp;&nbsp;&nbsp;&nbsp;URL：
		<input type="text" name="index_middleurl[]" value="<?php if(isset($indexmiddle_cn[1]['index_middleurl'])){echo $indexmiddle_cn[1]['index_middleurl']; unset($indexmiddle_cn[1]['index_middleurl']);}?>" />
		<br/>
 		&nbsp;&nbsp;&nbsp;内容：
		<textarea name="index_middlec[]" cols=40 rows="8"><?php if(isset($indexmiddle_cn[1]['index_middlec'])){echo $indexmiddle_cn[1]['index_middlec']; unset($indexmiddle_cn[1]['index_middlec']);}?></textarea>
	</p>
 	<p>3. 标题：
		<input type="text" name="index_middletit[]" value="<?php if(isset($indexmiddle_cn[2]['index_middletit'])){echo $indexmiddle_cn[2]['index_middletit']; unset($indexmiddle_cn[2]['index_middletit']);}?>" />
		<br/>
		&nbsp;&nbsp;&nbsp;&nbsp;URL：
		<input type="text" name="index_middleurl[]" value="<?php if(isset($indexmiddle_cn[2]['index_middleurl'])){echo $indexmiddle_cn[2]['index_middleurl']; unset($indexmiddle_cn[2]['index_middleurl']);}?>" />
		<br/>
 		&nbsp;&nbsp;&nbsp;内容：
		<textarea name="index_middlec[]" cols=40 rows="8"><?php if(isset($indexmiddle_cn[2]['index_middlec'])){echo $indexmiddle_cn[2]['index_middlec']; unset($indexmiddle_cn[2]['index_middlec']);}?></textarea>
	</p>
		 
	<p ><input type="submit" name="cn" value="更新数据库"/> <a href="#" onclick="updateCache('cn','indexmiddle');">更新缓存</a></p>
	</form>
	 
	</div>
	<div class="left_en">
		<h2>首页中间块English</h2>
		<form action="<?php echo current_url(); ?>" method="POST">
	 	<p>1. 标题：
		<input type="text" name="index_middletit[]" value="<?php if(isset($indexmiddle_en[0]['index_middletit'])){echo $indexmiddle_en[0]['index_middletit']; unset($indexmiddle_en[0]['index_middletit']);}?>" />
		<br/>
		&nbsp;&nbsp;&nbsp;&nbsp;URL：
		<input type="text" name="index_middleurl[]" value="<?php if(isset($indexmiddle_en[0]['index_middleurl'])){echo $indexmiddle_en[0]['index_middleurl']; unset($indexmiddle_en[0]['index_middleurl']);}?>" />
		<br/>
 		&nbsp;&nbsp;&nbsp;内容：
		<textarea name="index_middlec[]" cols=40 rows="8"><?php if(isset($indexmiddle_en[0]['index_middlec'])){echo $indexmiddle_en[0]['index_middlec']; unset($indexmiddle_en[0]['index_middlec']);}?></textarea>
	</p>
	<p>2. 标题：
		<input type="text" name="index_middletit[]" value="<?php if(isset($indexmiddle_en[1]['index_middletit'])){echo $indexmiddle_en[1]['index_middletit']; unset($indexmiddle_en[1]['index_middletit']);}?>" />
		<br/>
		&nbsp;&nbsp;&nbsp;&nbsp;URL：
		<input type="text" name="index_middleurl[]" value="<?php if(isset($indexmiddle_en[1]['index_middleurl'])){echo $indexmiddle_en[1]['index_middleurl']; unset($indexmiddle_en[1]['index_middleurl']);}?>" />
		 <br/>
 		&nbsp;&nbsp;&nbsp;内容：
		<textarea name="index_middlec[]" cols=40 rows="8"><?php if(isset($indexmiddle_en[1]['index_middlec'])){echo $indexmiddle_en[1]['index_middlec']; unset($indexmiddle_en[1]['index_middlec']);}?></textarea>
	</p>
 	<p>3. 标题：
		<input type="text" name="index_middletit[]" value="<?php if(isset($indexmiddle_en[2]['index_middletit'])){echo $indexmiddle_en[2]['index_middletit']; unset($indexmiddle_en[2]['index_middletit']);}?>" />
		<br/>
		&nbsp;&nbsp;&nbsp;&nbsp;URL：
		<input type="text" name="index_middleurl[]" value="<?php if(isset($indexmiddle_en[2]['index_middleurl'])){echo $indexmiddle_en[2]['index_middleurl']; unset($indexmiddle_en[2]['index_middleurl']);}?>" />
		
		<br/>
 		&nbsp;&nbsp;&nbsp;内容：
		<textarea name="index_middlec[]" cols=40 rows="8"><?php if(isset($indexmiddle_en[2]['index_middlec'])){echo $indexmiddle_en[2]['index_middlec']; unset($indexmiddle_cn[2]['index_middlec']);}?></textarea>
	</p>
	<p ><input type="submit" name="en" value="更新数据库"/> <a href="#" onclick="updateCache('en','indexmiddle');">更新缓存</a></p>
	</form>
	</div> 
</div>
<?php require_once 'footer2.php';?> 
